<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
		<style>
			.box {
				background-color: #f00;
				/* 设置max-width时, 内容不会随浏览器放大而放大 */
				max-width: 750px;
				margin: 0 auto;
				/* 当浏览器缩写到小于500px时, 此时会出现滚动条 */
				min-width: 500px;
			}
			.title {
				height: 2000px;
				background-color: #f00;
			}
		</style>
	</head>
	<body>
		<div class="box">
			Lorem ipsum dolor, sit amet consectetur adipisicing elit. Animi
			blanditiis labore, quaerat voluptates perspiciatis nam ex quae
			pariatur distinctio libero excepturi modi quam unde? Modi blanditiis
			officia quas et laboriosam?
		</div>
		<p class="title">Lorem ipsum dolor sit amet consectetur.</p>
	</body>
</html>
